package com.wyth.lottery.com;

import android.content.Context;

/**
 * Created by Administrator on 2017/10/13 0013.
 */

public class Constants {
    public static Context context;
    public static final String URL ="http://192.168.8.126:8080/lotteryC/clientInterface";
}
//    public static void main(String[] args) {
//        String url = "http://192.168.8.126:8080/lotteryC/clientInterface";
//
//        HttpClientUtils httpClientUtils = new HttpClientUtils(url);
//        Map<String, String> param = new HashMap<String, String>();
//        param.put("sid", "yhl");//渠道号
//        param.put("cmd", "3100");//操作码//注册接口
//        param.put("platform", "andorid");//平台(web andorid ios wap)
//        param.put("sysVer", "android4.2");
//        param.put("softVer", "v1.0");
//        param.put("width", "800");
//        param.put("height", "1024");
//        param.put("machId", "aaaaa");
//        param.put("func", "");
//        String p=Md5.Md5("123456");
//        String msgs = "{\"userName\":\"test4\",\"password\":\""+p+"\",\"memberId\":\"\"}";
//        param.put("msg", msgs);
//
//        //md5加密
//        String currMd5 = BuildParamUtils.buildMd5(param, "yhlkey");
//        //加密
//        param.put("md5", currMd5);
//        String str = JsonBinder.buildNonDefaultBinder().toJson(param);
//        Map<String, String> post = new HashMap<String, String>();
//        post.put("msg", str);
//        httpClientUtils.setPara(post);
//        String reStr = httpClientUtils.httpClientRequest();
//        try {
//            Map<String, String> resMap = JsonBinder.buildNormalBinder().getMapper().readValue(reStr, new TypeReference<Map<String, String>>() {
//            });
//            String resultStr = resMap.get("result");
//            Map<String, Object> resultMap = JsonBinder.buildNormalBinder().getMapper().readValue(resultStr, new TypeReference<Map<String, Object>>() {
//            });
//            for (Map.Entry<String, Object> entry : resultMap.entrySet()) {
//                System.out.println(entry.getKey());
//                System.out.println(entry.getValue());
//                if (entry.getKey().equals("accountLogList")) {
//                    List<Map<String, Object>> list = (List<Map<String, Object>>) entry.getValue();
//                    System.out.println("记录条数: " + list.size());
//                }
//            }
//        } catch (Exception e) {
//            e.printStackTrace();
//            throw new CndymException(ErrCode.E3002);
//        }
//
//    }